<template>
  <div class="set">
  <v-touch @swipeleft ="ck" @swiperight="ck"> 
    <div class="topNav">
      <p><img :src="URL+'back.png'" @click="ck"></p>
      <h2>设置</h2>
    </div>
    <div class="account">
      <p>账号与安全中心</p>
      <p><img :src="URL+'right.png'" alt=""></p>
    </div>
    <div class="matter">
      <ul>
        <li v-for="item,index in list1" :key="index">
          <p  @click="th(index)">{{item}}</p>
          <p><img :src="URL+'right.png'" alt=""></p>
        </li>
      </ul>
    </div>
    <div class="matter2">
      <div class="one">
        <p>版本更新</p>
        <div>
          <p>10.010</p>
          <p><img :src="URL+'right.png'" alt=""></p>
        </div>
      </div>
      <div class="two">
        <p>切换身份</p>
        <div>
          <p>牛人</p>
          <p><img :src="URL+'right.png'" alt=""></p>
        </div>
      </div>
    </div>
    <div class="last">
      <button>退出</button>
    </div>
  </v-touch>
  </div>
</template>

<script>
export default {
  data(){
    return{
      list1:["通知与提醒","屏蔽与过滤","主题显示","打招呼语","面试设置"]
    }
  },
  methods:{
    ck(){
      this.$router.back()
      this.$store.commit('judge')
    },
    th(index){
      if(index===2){
        this.$router.push('/theme')
      }
    }
  }
}
</script>

<style lang="scss" scoped>
  .topNav{
    display: flex;
    margin-top: 20px;
    height: 50px;
    border-bottom: 1px solid rgb(247, 246, 246);
    p{
      img{
        width: 20px;
        height: 20px;
        margin-left: 20px;
        margin-top: 5px;
      }
    }
    h2{
      margin-left: 130px;
    }
  }
  .account{
    display: flex;
    border-bottom: 1px solid rgb(247, 246, 246);
    p:nth-child(1){
      padding-left: 20px;
    }
    p:nth-child(2){
      padding-left: 24px;
    }
    p{
      padding-top: 20px;
      padding-bottom: 20px;
      img{
        width: 20px;
        height: 20px;
        // padding-left: px;
        margin-left: 175px;
      }
    }
  }
  .matter{
    border-bottom: 1px solid rgb(247, 246, 246);
    ul{
      li{
        display: flex;
        margin: 20px;
        margin-right: 0;
        p:nth-child(1){
          width: 150px;
          text-align: left;
        }
        p:nth-child(2){
          margin-left: 160px;
        }
        p{
          text-align: right;
          img{
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }
  .matter2{
    border-bottom: 1px solid rgb(247, 246, 246);
    .one{
      margin: 20px;
      display: flex;
      div{
        display: flex;
        margin-left: 190px;
        p{
          color: #ccc;
          img{
            width: 20px;
            height: 20px;
          }
        }
      }
    }
    .two{
      display: flex;
      margin: 20px;
      div{
        display: flex;
        margin-left: 210px;
        p{
          color: #ccc;
          img{
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }
  .last{
    margin-top: 30px;
    display: flex;
    justify-content: center;
    button{
      width: 355px;
      height: 40px;
      background: rgb(245, 242, 242);
      border: none;
    }
  }
</style>